package com.lifeng.patterns.factory.abstractfactory;

/**
 * Created by lifeng on 2019/9/19.
 */
public class Clienter {
    public static void main(String[] args) {
        FurnitureFactory factory = new PlasticFurnitureFactory();
        FurnitureFactory factory1 = new WoodenFurnitureFactory();
        //需要哪个产品族自己选择
        Desk desk = factory.createDesk();
        Chair chair = factory.createChair();
        System.out.println(desk.getType());
        System.out.println(chair.getType());
    }
}
